﻿using System;
using Autodesk.Revit.DB;
using YJKRevitBase.Algorithm;

namespace YJKRevitKernel.CurveUtility.IntersectionUtility
{
	internal class CurveData : AABBDATA
	{
		internal Curve ThisCurve
		{
			get
			{
				return this.m_thisCurve;
			}
			private set
			{
				this.m_thisCurve = value;
			}
		}

		internal CurveData(Curve inputCurve)
		{
			this.m_thisCurve = inputCurve;
			foreach (XYZ xyz in inputCurve.Tessellate())
			{
				base.AppendAABBData(xyz.X, xyz.Y);
			}
		}

		private Curve m_thisCurve;
	}
}
